package org.msfj.common.enums;

/**
 * @Description: 菜单类型
 * @User: like
 * @Date: 2016/7/18 13:03
 * @Version: 1.0
 * @Created with IntelliJ IDEA.
 */
public enum MenuType implements CodeValueEnum<Integer>{
    MENU(1, "菜单"),
    BUTTON(2, "按钮");

    Integer code = 1;
    String value;

    @Override
    public String getValue() {
        return this.value;
    }

    @Override
    public Integer getCode(){
        return this.code;
    }

    MenuType(Integer code,String value) {
        this.code = code;
        this.value = value;
    }
}
